package cn.edu.scau.cmi.zhaotingjie.chapter06;

public class Student6_11 {
	public double area(Geometry...p) {
		double sum = 0;
		for(int i = 0;i<p.length;i++) {
			sum = sum+p[i].getArea();
		}
		return sum;
	}
}
